<tr>
	<th colspan="2">
		<script type="text/javascript">
		// <![CDATA[
			/**
			* Show upload progress bar
			*/
			function popup_progress_bar()
			{
				close_waitscreen = 0;
				// no scrollbars
				popup('{UA_PROGRESS_BAR}', 400, 200, '_upload');
			}
		// ]]>
		</script>

		<!-- IF S_CLOSE_PROGRESS_WINDOW -->
			<script type="text/javascript">
			// <![CDATA[
				close_waitscreen = 1;
			// ]]>
			</script>
		<!-- ENDIF -->

		{L_ADD_ATTACHMENT}
	</th>
</tr>
<tr>
	<td class="row3" colspan="2"><span class="gensmall">{L_ADD_ATTACHMENT_EXPLAIN}</span></td>
</tr>

<tr>
	<td class="row1"><b class="genmed">{L_FILENAME}</b></td>
	<td class="row2"><input type="file" name="fileupload" size="40" maxlength="{FILESIZE}" value="" class="btnfile" />&nbsp;<input type="button" class="btnfile" name="files_" value="+" style="width: 40px" onclick="add_more_upload()" title="" /></td>

</tr>
<tr>
	<td class="row1"><b class="genmed">{L_FILE_COMMENT}</b></td>
	<td class="row2">
		<table border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td><textarea class="post" name="filecomment" rows="3" cols="35">{FILE_COMMENT}</textarea></td>
		</tr>
		</table>
	</td>
</tr>

<tr id="multiple">
	<td class="row1"><b class="genmed">&nbsp;</b></td>
	<td class="row2">
		<table border="0" cellspacing="0" cellpadding="2">
			<tr>
				<td>
					<a name="FILES">
					<input type="hidden" name="proxid" id="proxid" value="1" />
					<input type="hidden" name="maxmfu" id="maxmfu" value="1" />
					<input class="btnlite" type="submit" style="width:150px" name="add_file" value="{L_ADD_FILE}"onclick="popup_progress_bar();" /></a>
				</td>
			</tr>
		</table>
	</td>
</tr>
<!-- IF S_MAX_MFU -->
<tr>
	<td class="row1"><input type="hidden" name="maxmfu" id="maxmfu" value="1" /></td>
	<td class="row2">
		{L_MAX_MFU}
	</td>
</tr>
<!-- ENDIF -->

<!-- IF S_HAS_ATTACHMENTS -->
	<tr>
		<th colspan="2">{L_POSTED_ATTACHMENTS}</th>
	</tr>

	<!-- BEGIN attach_row -->
		<tr>
			<td class="row1"><b class="genmed">{L_FILENAME}</b></td>
			<td class="row2"><a class="genmed" href="{attach_row.U_VIEW_ATTACHMENT}" target="_blank">{attach_row.FILENAME}</a></td>
		</tr>
		<tr>
			<td class="row1"><b class="genmed">{L_FILE_COMMENT}</b></td>
			<td class="row2">{attach_row.S_HIDDEN}
				<table border="0" cellspacing="0" cellpadding="2">
				<tr>
					<td><textarea class="post" name="comment_list[{attach_row.ASSOC_INDEX}]" rows="3" cols="35" wrap="virtual">{attach_row.FILE_COMMENT}</textarea>&nbsp;</td>
					<td valign="top">
						<table border="0" cellspacing="4" cellpadding="0">
						<tr>
							<td><input class="btnlite" type="submit" style="width:150px" name="delete_file[{attach_row.ASSOC_INDEX}]" value="{L_DELETE_FILE}" /></td>
						</tr>
						</table>
					</td>
				</tr>
				</table>
			</td>
		</tr>
	<!-- END attach_row -->

<!-- ENDIF -->
